#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

int main(int argc, char **argv)
{
    if(argc < 2){
        printf("The input file path must not be less than two!\n");
        printf("First file path is source path, and the other file paths is hard link path\n");
        exit(-1);
    }

    for(int i=2; i<argc; i++){
        if(-1 == symlink(argv[1], argv[i])){
            perror("link error!");
            exit(-1);
        }
    }

    exit(0);
}